package utilities;

import org.zkoss.zk.ui.HtmlMacroComponent;
import org.zkoss.zul.Window;
import org.zkoss.zul.Chart;
import java.util.Map;

public class PieChartDataReader extends HtmlMacroComponent {
	
	/*  Set data for chart  */
	public void setData( Map data ){
		( (Chart)( (Window)getFellow( "DG_PMAIN" ) ).getFellow( "DG_PCHART" ) ).setVariable("data", data, true);
	}
	
}
